const util = require('../../../../../../../../utils/util.js');
const api = require('../../../../../../../../config/api.js');
const user = require('../../../../../../../../services/user.js');
const app = getApp();
Page({
  data: {
    //字数设置面板控制
    openSetLength: false,
    //补卡设置面板控制
    openSetMend: false,
    //补卡周期类型
    mendType: 0,
  },
  onLoad: function (options) {
    var _this = this;
    var circleid = options.circleid;
    _this.setData({
      circleid: circleid
    })
    console.log(circleid)
  },
  onShow: function () {
    var _this = this
  },
  //字数设置面板控制
  showSetLength: function () {
    var _this = this
    if (_this.data.openSetLength) {
      _this.setData({
        openSetLength: false
      })
    } else {
      _this.setData({
        openSetLength: true
      })
    }
  },
  //补卡设置面板控制
  showSetMend: function () {
    var _this = this
    if (_this.data.openSetMend) {
      _this.setData({
        openSetMend: false
      })
    } else {
      _this.setData({
        openSetMend: true
      })
    }
  },
  //选择补打卡周期类型
  selectMendType: function (e) {
    var _this = this
    var index = e.currentTarget.dataset.index
    _this.setData({
      mendType: index
    })
  },
})